package com.glsc.ngateway.platform.utils;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.RetentionPolicy.RUNTIME;


@Target({ElementType.FIELD})
@Retention(RUNTIME)
@Constraint(validatedBy = {YSENOValidator.class})
public @interface YESNO {
    String message() default "取值只能为 Y/N";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
